import request from '@/utils/request'

// 查询套餐信息列表
export function listCarPackageAudit(query) {
  return request({
    url: '/business/carPackageAudit/list',
    method: 'get',
    params: query
  })
}

// 查询套餐信息列表-todo
export function listTodo(query) {
  return request({
    url: '/business/carPackageAudit/todo',
    method: 'get',
    params: query
  })
}

// 查询套餐信息列表-done
export function listDone(query) {
  return request({
    url: '/business/carPackageAudit/done',
    method: 'get',
    params: query
  })
}

// 查询套餐信息详细
export function getCarPackageAudit(id) {
  return request({
    url: '/business/carPackageAudit/' + id,
    method: 'get'
  })
}

// 新增套餐信息
export function addCarPackageAudit(data) {
  return request({
    url: '/business/carPackageAudit',
    method: 'post',
    data: data
  })
}

// 修改套餐信息
export function updateCarPackageAudit(data) {
  return request({
    url: '/business/carPackageAudit',
    method: 'put',
    data: data
  })
}

// 删除套餐信息
export function delCarPackageAudit(id) {
  return request({
    url: '/business/carPackageAudit/' + id,
    method: 'delete'
  })
}

// 查询审核进度
export function getProcessImg(id) {
  return request({
    url: '/business/carPackageAudit/process/' + id,
    method: 'get'
  })
}

//审核撤销
export function auditCancel(id) {
  return request({
    url: '/business/carPackageAudit/cancel/' + id,
    method: 'post'
  })
}
//审核历史
export function getAuditHistory(id) {
  return request({
    url: '/business/carPackageAudit/history/' + id,
    method: 'get'
  })
}

//审核
export function audit(params) {
  return request({
    url: '/business/carPackageAudit/audit',
    method: 'post',
    data:params
  })
}
